package cc.android.testapp.ui.listbase;

import android.support.v7.widget.RecyclerView;
import android.view.View;

public abstract class BaseLine<D extends LineData> extends RecyclerView.ViewHolder implements View.OnClickListener {
    protected D mData;

    public BaseLine(View pContent) {
        super(pContent);

        this.itemView.setOnClickListener(this);
    }

    public void setData(D pData) {
        this.mData = pData;
    }

    public D getData() {
        return this.mData;
    }

    @Override
    public void onClick(View v) {

    }

    /**
     * 获取排序权重,越大越靠前
     *
     * @return
     */
    public int getWeight() {
        return 0;
    }

}
